package org.NooLab.glue.net.sockets.udp;

import org.NooLab.glue.net.DataSlot;


public interface GlueUdpHandlerIntf {

	/**
	 * this returns just the message already transformed into a string 
	 */
	public void getUdpMessageStr( String msg ) ;

	/**
	 * 
	 * this returns an object of type DataSlot, which contains a variable byte-array;
	 * such, the consumer can do anything on the transferred data, even reconstruct 
	 * an object;
	 * hence, the return type of this variant of the method is the generic Object
	 * 
	 *  the DataSlot may contain a reference to a stream object
	 * @param dataslot
	 * @return
	 */
	public void getUdpMessageObj( DataSlot dataslot ) ;
		
}
